// +----------------------------------------------------------------------
// | 车商
// +----------------------------------------------------------------------

import request from "@/utils/request.js";

/**
 * 车商信息
 */
export function getDealerInfo(usersId,shopUsersId) {
	return request.get(`users/carsDealerInfo?users_id=${usersId}&shop_users_id=${shopUsersId}`);
}
/**
 * 获取新车列表

 * @param {Object} shopUsersId
 */
export function getNewCarList(shopUsersId,seriesId,page_num,page) {
	return request.get(`users/carsDealerNewsCarsList?shop_users_id=${shopUsersId}&series_id=${seriesId}&page_num=${page_num}&page=${page}`);
}
/**
 * 二手车列表

 * @param {Object} shopUsersId
 */
export function getOldCarList(shopUsersId,seriesId,page_num,page) {
	return request.get(`users/carsDealerUsedCarsList?shop_users_id=${shopUsersId}&series_id=${seriesId}&page_num=${page_num}&page=${page}`);
}
/**关注
 * @param {Object} data
 */
export function followShop(data) {
	return request.post('news/followStoreUpdate', data);
}
/**
 * 获取下拉数据
 * @param {Object} userId
 */
export function getSelctData(userId,state) {
	return request.get(`users/carsDealerVehicleConditions?users_id=${userId}&state=${state}`);
}